package org.jeecg.modules.demo.mall.yxstoreproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.demo.mall.entity.YxStoreProduct;

/**
 * @Description: yx_store_product
 * @Author: jeecg-boot
 * @Date:   2023-10-19
 * @Version: V1.0
 */
public interface IYxStoreProductService extends IService<YxStoreProduct> {

    //查询当前商品的最大排序
    Integer sort();

    //修改数据库存
    void updateNum(Integer productId , Integer num ,Integer productType,Integer orderPayType,Integer skuId,String merStoreId);

    //判断库存
    Boolean checkNum(Integer productId , Integer num ,Integer productType,Integer orderPayType,Integer skuId,String merStoreId);
}
